// 关于供应商的所有接口
import axiosp from '@/apis/axios/indexp.js'
const baseUrl = `/erp`

// 供应商列表信息
export function getlist(params) {
	return axiosp.request({
		url: `${baseUrl}/supplier/listPage`,
		method: 'post',
		data: params
	})
}
// 根据id获取供应商列表信息
export function getVoDataById(params) {
	return axiosp.request({
		url: `${baseUrl}/supplier/getVoDataById`,
		method: 'post',
		data: params
	})
}
// 根据id获取供应商列表信息
export function initAddData(params) {
	return axiosp.request({
		url: `${baseUrl}/supplier/initAddData`,
		method: 'post',
		data: params
	})
}
// 新增供应商数据
export function addData(params) {
	return axiosp.request({
		url: `${baseUrl}/supplier/addOrUpdateData`,
		method: 'post',
		data: params
	})
}

// 删除供应商类别
export function delectData(params) {
	return axiosp.request({
		url: `${baseUrl}/supplier/deleteByIds`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}




//获取供应商类分类接口
export function getCategoryList(params) {
	return axiosp.request({
		url: `${baseUrl}/processorCat/listAllData`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}
//添加获取供应商分类
export function addCategoryData(params) {
	return axiosp.request({
		url: `${baseUrl}/processorCat/addOrUpdateData`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}

//获取结款方式 lable 列表
export function getLableListOptions(params) {
	return axiosp.request({
		url: `${baseUrl}/settlementType/listOptions`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}

//获取结款方式列表
export function getListAllData(params) {
	return axiosp.request({
		url: `${baseUrl}/settlementType/listAllData`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}

// 结款方式的修改和新增
export function addOrUpdateList(params) {
	return axiosp.request({
		url: `${baseUrl}/settlementType/addOrUpdateList`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}
// 结算方式删除
export function deleteById(params) {
	return axiosp.request({
		url: `${baseUrl}/settlementType/deleteById`,
		method: 'post',
		data: params
	})
}


// 获取供应商分类
export function getTypeData(params) {
	return axiosp.request({
		url: `${baseUrl}/supplierCat/listAllData`,
		method: 'post',
		data: params
		// name: "1111222"
		// pid: "1675479784274132992"
	})
}

